﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace olierFrm.Extensions.EStream
{
    public static class StreamExtensions
    {
        public static byte[] GetBytes(this Stream stream)
        {
            byte[] b = new byte[stream.Length];
            stream.Read(b, 0, int.Parse(stream.Length.ToString()));
            return b;
        }
    }
}
